package com.gmail.dmitryustimov.ms.java7.observer.mod.demo.subj1subsc1event1;

import com.gmail.dmitryustimov.ms.java7.patternslib.observer.EventPublisher;

public class Subject {

    private EventPublisher<Event> eventPublisher = new EventPublisher<>();

    public EventPublisher<Event> getEventPublisher() {
        return eventPublisher;
    }

    public void setEventPublisher(EventPublisher<Event> eventPublisher) {
        this.eventPublisher = eventPublisher;
    }

    public void makeEvent() {
        eventPublisher.publish(new Event(""));
    }
}
